package com.yan.exceptiontest;

/*          1          2    3    4          5        6          7          8       9      10
    1       2          3    4    5          6         7        8            9      10
    100    50+50     25+25  25   12.5       6.25      3.125    1.56         0.78    0.39   0.195
*/
public class Test7 {
    public static void main(String[] args) {
        double h = 100;
        double meter = 100 , count = 0;
        for (int i = 2; i <= 10; i++) {
            h /= 2;
            meter += h + h;
        }
        System.out.println("第10次落地时共经过了" + meter + "米");
        System.out.println("第10次反弹了" + h + "米");
    }
}
